import Vue from "vue";
import VueRouter from "vue-router";
Vue.use(VueRouter);

const router = new VueRouter({
  routes: [
    {
      path: "/",
      name: "home",
      component: () => import(/* webpackChunkName:'home' */ "../view/home.vue"),
      meta: {
        title: "home",
      },
    },
    {
      path: "/login",
      name: "login",
      component: () =>
        import(/* webpackChunkName:'login' */ "../view/login/index.vue"),
      meta: {
        title: "login",
      },
    },
  ],
});

export default router;
